package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.business_monitor.po.SearchParams;
import com.yuandian.api.management.entity.ConfEmployee;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import com.yuandian.management.dto.BaseConfDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 营业员配置表-Mapper接口
 * @author zfsn
 * @date 2023-3-28
 */
@Mapper
public interface ConfEmployeeMapper extends BpmBaseMapper<ConfEmployee> {

	/**
	 * 分页查询
	 *
	 * @param confEmployee 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfEmployee> listPage(Page<ConfEmployee> Page, @Param("params") ConfEmployee confEmployee);


	/**
	 * 查询营业员信息
	 * @param params
	 * @return
	 */
	List<BaseConfDTO> getOperators(@Param("params") SearchParams params);

	/**
	 * 查询营业厅编码和营业员编码组合的数据
	 * @return
	 */
	Set<String> listEmployNumAndBusinessHallNum();
}
